package com.victualler.business.purchase.entity;

/**
 * @author Guoshichang
 * @since 14:57 on 2018/10/5.
 */

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.victualler.core.base.dao.BaseOrderDao;
import com.victualler.core.common.annotation.InitEditColumn;
import com.victualler.core.common.annotation.ListShowColumn;
import com.victualler.core.common.enums.ColumnFormatEnum;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author Guoshichang
 * @date 16:50 on 2018/6/24.
 * @function 采购预订单主信息
 */
@Entity
@Table(name="pre_purchase_order")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class PrePurchaseOrderDao extends BaseOrderDao implements Serializable {

    //预订单号
    @ListShowColumn(title = "订单号",sort = 1,type = ColumnFormatEnum.LINK)
    @InitEditColumn(title = "订单号",sort = 1,canEdit = false,required = false)
    private String orderNo;

    //订单总量
    @ListShowColumn(title = "预定总量",sort = 3)
    @InitEditColumn(title = "预定总量",sort = 3,canEdit = false)
    private BigDecimal sumQuantity;

    //出单原因
    @ListShowColumn(title = "备注",sort = 1)
    @InitEditColumn(title = "备注",sort = 1)
    private String reason;

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public BigDecimal getSumQuantity() {
        return sumQuantity;
    }

    public void setSumQuantity(BigDecimal sumQuantity) {
        this.sumQuantity = sumQuantity;
    }


    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
